<?php
include ('menumaker.inc');
include ('productmaker.inc');

 class graphic_maker{
 	
 	function get_titlebar()
 	{
 		$titlebar = '<div id="Head">
        <div id="Head_left">
          <div id="Leaf_top"></div>
          <div id="Leaf_bottom"> <a class="registration" href="">REGISTRAZIONE</a> <a class="log-in" href="http://www.free-css.com/">LOG IN</a> </div>
        </div>
        <div id="Head_right">
          <div id="Logo">
            <div id="Name"><span class="blue">U</span><span>niversal</span>&nbsp;<span class="blue">S</span><span>hop</span> </div>
            <div id="Informations">Benvenuto nel tuo e-shop universale </div>
          </div>
          <div id="Top_menu"> <a class="kart" href="http://www.free-css.com/"><span>CARRELLO</span></a> <a class="orders" href="http://www.free-css.com/"><span>ORDINI</span></a> <a class="contact" href=""><span>CONTATTI</span></a> <a class="help" href=""><span>HELP</span></a> <a class="home" href=""><span>HOME</span></a> </div>
        </div>
      </div>';
 		return $titlebar;
 	}
 	
 	function html_initial()
 	{
 		$html_initial ='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
		<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
		<title>Universal Shop</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="default.css" title="default"/>
		</head>
		<body>
		<div id="WholePage">
		  <div id="Inner">
		    <div id="Container">';
 		return $html_initial;
 	}
 	
 	function html_final()
 	{
 		$html_final= '</div>
		  </div>
		</div>
		</body>
		</html>';
 		return $html_final;
 	}
 	
 	function get_central_part()
 	{
 		$menu= new menumaker;
 		$product= new productmaker;
 		$central='<div id="CentralPart">';//apertura central part
	 		$central=$central.'<div id="LeftPart">';//apertura parte sinistra 
	 		$central.=$menu->get_menu();
	 		$central.=$this->banner();
	 		$central= $central.'</div>';//chiusura parte sinistra
 		
	 		$central=$central.'<div id="RightPart">';
	 		$central.=$this->centralpart_top();
	 		$central.=$this->centralpart_news();
	 		$central.=$product->list_product_home();
	 		$central=$central.'</div>';
 		$central= $central.'</div>';
 		
 		return $central;
 	}
 	
 	function banner()
 	{
 		$bann='<div id="Banner"> <img src="img/banner.jpg" alt="" /> </div>';
 		return $bann;
 	}
 	
 	function centralpart_top()
 	{
 		$top='<div id="Page_header">
              <h1>Advantages of our shop</h1>
              <table>
                <tr>
                  <td class="page_header_img"><img src="img/basket.gif" alt="" /></td>
                  <td class="page_header_text"><p>Donec at justo ac ipsum laoreet dapibus. Vivamus lacinia. Suspendisse ipsum. Morbi vitae nulla. In hac habitasse platea dictumst.</p></td>
                  <td class="page_header_img"><img src="img/idea.gif" alt="" /></td>
                  <td class="page_header_text"><p>Etiam sollicitudin dignissim tellus. Cras ut ligula nec ligula aliquam ultrices. Praesent tempor. Donec arcu. Morbi sit amet augue.</p></td>
                </tr>
                <tr>
                  <td class="page_header_img"><img src="img/car.gif" alt="" /></td>
                  <td class="page_header_text"><p>Etiam sollicitudin dignissim tellus. Cras ut ligula nec ligula aliquam ultrices. Praesent tempor. Donec arcu. Morbi sit amet augue.</p></td>
                  <td class="page_header_img"><img src="img/envelope.gif" alt="" /></td>
                  <td class="page_header_text"><p>Donec at justo ac ipsum laoreet dapibus. Vivamus lacinia. Suspendisse ipsum. Morbi vitae nulla. In hac habitasse platea dictumst.</p></td>
                </tr>
              </table>
            </div>';
 		return $top;
 	}
 	
 	function centralpart_news()
 	{
 		$news='<div id="Page_top">
              <p> Lorem ipsum dolor sit amet 1-4<br/>
                Cras volutpat ligula sed est. Quisque lacus <a href="http://www.free-css.com/">libero,</a> <a href="http://www.free-css.com/">vestibulum ut,</a> <a href="http://www.free-css.com/">venenatis ac,</a> <a href="http://www.free-css.com/">interdum quis, mi.</a><br/>
                Donec at justo ac ipsum laoreet <a href="http://www.free-css.com/">dapibus</a><br/>
                <a href="http://www.free-css.com/">1</a> 2 3 .... 11 12 13<br/>
              </p>
            </div>';
 		return $news;
 	}
 	
 	function footer()
 	{
 		$footer='<div id="Bottom">
        <p class="down">Copyright &copy; Duca &amp; Sciurti -- 2010  </p>
        <div class="down2">
          <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1" height="31" width="88" /></a> </p>
        </div>
      </div>';
 		return $footer;
 	}
 	
 }